#ifndef __PreLoadScene_H__
#define __PreLoadScene_H__

#include "cocos2d.h"
#include "ui/CocosGUI.h"

using namespace cocos2d::ui;
USING_NS_CC;

class PreLoadScene:public Layer
{
public:
	bool init();
	CREATE_FUNC(PreLoadScene);
	static Scene* createScene();
	void LoadingPic();
	void LoadPicCallBack(Texture2D* texture);
	void LoadingMusic();
	void LoadSoundCallBack(bool success);
private:
	Sprite* logo;
	LoadingBar* bar;
	int n_pic;
	int n_sound;
};

#endif